package com.yun.newBlog.blog.mapper;

import com.yun.newBlog.blog.domain.entity.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BlogMapper2 {

    @Select("select * from blog where sort=#{sort} and tag=#{tag}")
    List<Blog> findAll(@Param("sort") String sort,@Param("tag") String tag);
}
